﻿<%@ Page Title="" Language="C#" MasterPageFile="~/nest2.master" AutoEventWireup="true" CodeBehind="delcd.aspx.cs" Inherits="WebApplication1.delcd" %>

<script runat="server">

    protected void delcdbtn_Click(object sender, EventArgs e)
    {

    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <asp:Panel ID="Panel1" runat="server">
    <asp:GridView ID="GridView1" runat="server" 
    AutoGenerateColumns="False" DataKeyNames="cdno" DataSourceID="SqlDataSource1" 
            Height="175px" Width="577px">
        <Columns>
            <asp:BoundField DataField="cdno" HeaderText="cdno" ReadOnly="True" 
            SortExpression="cdno" />
            <asp:BoundField DataField="name" HeaderText="name" SortExpression="name" />
            <asp:BoundField DataField="cat" HeaderText="cat" SortExpression="cat" />
            <asp:BoundField DataField="lang" HeaderText="lang" SortExpression="lang" />
            <asp:BoundField DataField="publish" HeaderText="publish" 
            SortExpression="publish" />
            <asp:BoundField DataField="year" HeaderText="year" SortExpression="year" />
            <asp:BoundField DataField="copies" HeaderText="copies" 
            SortExpression="copies" />
            <asp:BoundField DataField="price" HeaderText="price" SortExpression="price" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:Database1ConnectionString %>" 
    SelectCommand="SELECT * FROM [cdinfo]"></asp:SqlDataSource>
    <br />
    <br />

        <asp:DropDownList ID="DropDownList1" runat="server">
        </asp:DropDownList>
        <br />
        <br />

        <asp:Button ID="delcdbtn" runat="server" Text="DELETE" 
            onclick="delcdbtn_Click" />
</asp:Panel>

</asp:Content>
